package model;

import java.util.List;

public class OnlineLog { 
    
    public static class OnlineLogReq {
        public String device_num;
        public Common.PageModel pageModel;

        public OnlineLogReq(String device_num, Common.PageModel pageModel) {
            this.device_num = device_num;
            this.pageModel = pageModel;
        }
    }

    public static class OnlineLogResp {
        public int code;
        public String message;
        public Object data;
        public int timestamp;

        public OnlineLogResp(int code, String message, Object data, int timestamp) {
            this.code = code;
            this.message = message;
            this.data = data;
            this.timestamp = timestamp;
        }
    }

    public static class OnlineLogData {
        public int count;
        public List<Object> list;

        public OnlineLogData(int count, List<Object> list) {
            this.count = count;
            this.list = list;
        }
    }

    public static class OnlineLogDetail {
        public String duration;
        public int last_offline_code;
        public String last_offline_reason;
        public String state;
        public String time;

        public OnlineLogDetail(String duration, int last_offline_code, String last_offline_reason, String state, String time) {
            this.duration = duration;
            this.last_offline_code = last_offline_code;
            this.last_offline_reason = last_offline_reason;
            this.state = state;
            this.time = time;
        }
    }
}